package com.diy.sigmund.junit5.mockito.argumentCaptor;

import java.util.StringJoiner;

/**
 * @author ylm-sigmund
 * @since 2023/7/9 17:09
 */
public class Email {

    private String to;
    private String subject;
    private String body;
    private EmailStyle emailStyle;

    public Email(String to, String subject, String body) {
        this.to = to;
        this.subject = subject;
        this.body = body;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public EmailStyle getEmailStyle() {
        return emailStyle;
    }

    public void setEmailStyle(EmailStyle emailStyle) {
        this.emailStyle = emailStyle;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", Email.class.getSimpleName() + "[", "]")
                .add("to='" + to + "'")
                .add("subject='" + subject + "'")
                .add("body='" + body + "'")
                .add("emailStyle=" + emailStyle)
                .toString();
    }
}